﻿using EPiServer.Core;
using EPiServer.DataAbstraction;
using PageTypeBuilder;
using SocialPack.Composer.PageTypes.Tabs;

namespace SocialPack.Composer.PageTypes.Facebook
{
    [PageType("af36b172-76c6-40e1-99b3-ffb735b7ff49", Filename = "/modules/socialpack/composer/functions/facebook/loginbutton.ascx", AvailableInEditMode = false, Name = "[Facebook] Login Button", Description = "Facebook Login Button")]
    public class LoginButton : FunctionBase
    {
        [PageTypeProperty(Tab = typeof(ComposerTab), DefaultValueType = DefaultValueType.Value, DefaultValue = "200")]
        public virtual int Width { get; set; }

        [PageTypeProperty(EditCaption = "Max rows", Tab = typeof(ComposerTab), DefaultValueType = DefaultValueType.Value, DefaultValue = "1")]
        public virtual int MaxRows { get; set; }

        [PageTypeProperty(EditCaption = "Show faces", Tab = typeof(ComposerTab))]
        public virtual bool ShowFaces { get; set; }

        [PageTypeProperty(EditCaption = "Country code", Tab = typeof(ComposerTab), DefaultValue = "en_US", DefaultValueType = DefaultValueType.Value, Type = typeof(PropertyString))]
        public virtual string CountryCode { get; set; }

        [PageTypeProperty(Tab = typeof(ComposerTab), Type = typeof(PropertyString))]
        public virtual string Permissions { get; set; }
    }
}